<?php


//载入模板配置文件

switch($_SERVER['SERVER_NAME']){
	case "www.card.com":
	    //测试数据库
	    $DB_HOST = "www.25mp.cn";
	    $DB_NAME = "Card";
	    $DB_USER = "root";
	    $DB_PWD  = "37113009";
	    $URL = "";
	    $DOMAIN = "";
	    $VERSION = "TEST";
	    $DB_PORT = "5080";
	    
	    $TMPL_EXCEPTION_FILE = LIB_PATH.'TpFrame/Tpl/think_exception_old.tpl';
	    break;
	case "card.hj.cpax.cn":
	    //测试数据库
	    
		/*
	    $DB_HOST = "114.55.138.90";
	    $DB_NAME = "Card";
	    $DB_USER = "root";
	    $DB_PWD  = "37113009";
	    $URL = "";
	    $DOMAIN = "";
	    $VERSION = "TEST";
	    $DB_PORT = "5080";
// 	    $DB_HOST = "localhost";
// 	    $DB_NAME = "card";
// 	    $DB_USER = "root";
// 	    $DB_PWD  = "37113009";
// 	    $URL = "";
// 	    $DOMAIN = "";
// 	    $VERSION = "TEST";
// 	    $DB_PORT = "3306";
	    
	    $TMPL_EXCEPTION_FILE = LIB_PATH.'TpFrame/Tpl/think_exception_old.tpl';
	    */
		
		
		$DB_HOST = "localhost";
		$DB_NAME = "card";
		$DB_USER = "root";
		$DB_PWD  = "168168";
		$URL = "";
		$DOMAIN = "";
		$VERSION = "TEST";
		$DB_PORT = "3306";
		
		
	    break;
	default:
	    //正式数据库
		$DB_HOST = "v1.25mp.cn";
		$DB_NAME = "Card";
		$DB_USER = "card";
		$DB_PWD  = '6Umh6Li4eB$F';
		$URL = "";
		$DOMAIN = "";
		$VERSION = "PE";
		$DB_PORT = "5066";
		
		$TMPL_EXCEPTION_FILE = LIB_PATH.'TpFrame/Tpl/think_exception_old.tpl';
		break;
}

GLOBAL $_CONFIG;

return array(
	//'配置项'=>'配置值'
	'URL_CASE_INSENSITIVE' => 'true',//开启模块大小写通用模式
	
	'TMPL_SWITCH_ON'       => true, // 启用多模版支持
	'TMPL_DETECT_THEME'    => true, // 自动侦测模板主题
	
// 	'DEFAULT_MODULE'       => 'Console',//默认模块
// 	'DEFAULT_ACTION'       => 'login',// 默认操作
	
	'DEFAULT_MODULE'       => 'bizcard',//默认模块
	// 'DEFAULT_ACTION'       => 'detail',// 默认操作
	'DEFAULT_ACTION'       => 'doAfter',
	
	'URL_MODEL'            => 2,// URL模式
	'URL_HTML_SUFFIX'      => 'html',//伪静态模式
	
	'APP_GROUP_LIST' 		=> 'Home,Admin', //项目分组设定
	'DEFAULT_GROUP'  		=> 'Home', //默认分组
		
	//连接MYSQL数据库
	'DB_TYPE'              => 'MySQLi',
	
	'DB_HOST'              => $DB_HOST,
	'DB_NAME'              => $DB_NAME,
	'DB_USER'              => $DB_USER,
	'DB_PWD'               => $DB_PWD,
	'DB_PORT'              => $DB_PORT,
	'DB_PREFIX'            => '',
			
	
	'SHOW_RUN_TIME'        => false,// 运行时间显示
	'SHOW_ADV_TIME'        => false,// 显示详细的运行时间
	
	//分语言使用不同模版
	
	//模版参数定界符
	'TMPL_L_DELIM'         => '{',
	'TMPL_R_DELIM'         => '}',
	
    'TMPL_EXCEPTION_FILE'  => $TMPL_EXCEPTION_FILE, //开启错误提示
    
	'WX_APP_ID'         	=> 'wxdecbd834d0caada9',
	'WX_APP_SECRET'         => 'b31981d391b35921b0349a265154cef3',
	
	'SEND_KEY'				=> '94dde43f1cf557ff77ec1579bceef9d6',  // 您申请的APPKEY
	'TPL_ID'				=> '27478',								//您申请的短信模板ID，根据实际情况修改
	'SEND_URL'				=> 'http://v.juhe.cn/sms/send',			//短信接口的URL
		
	'TEST'					=> "123",
	
	//支付宝
	'ALIPAY_PARTNER'		=> "2088611832568237",
	'ALIPAY_KEY'			=> "qmjuk19bk1mdyks1sjhrjhfnmhux7iny",
	'ALIPAY_EMAIL'			=> "2727409946@qq.com",
);



?>